* lread.c, data.c: If STDC_HEADERS is #defined, include <stdlib.h>
authorJim Blandy <jimb@redhat.com>
Fri, 14 May 1993 14:42:01 +0000 (14:42 +0000)
committerJim Blandy <jimb@redhat.com>
Fri, 14 May 1993 14:42:01 +0000 (14:42 +0000)
to get the extern declarations for atof.  That's where it is in
POSIX.

src/data.c
src/lread.c

index c4473c8cbd3b6ccddd8f7254ac294caa8b62449d..db726c0f8b2c587ab58244c9ae575e81926f5128 100644 (file)
@@ -31,6 +31,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "syssignal.h"
 
 #ifdef LISP_FLOAT_TYPE
+#ifdef STDC_HEADERS
+#include <stdlib.h>
+#endif
 #include <math.h>
 #endif /* LISP_FLOAT_TYPE */
 
index 8615288f06bd71046bf4c6dfe58f220b837d045e..aa211716a0ad629af2f99733a93841bc4d839b5b 100644 (file)
@@ -45,6 +45,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #endif
 
 #ifdef LISP_FLOAT_TYPE
+#ifdef STDC_HEADERS
+#include <stdlib.h>
+#endif
 #include <math.h>
 #endif /* LISP_FLOAT_TYPE */